Platform Explorer / Nuxeo Platform 2021.49

Extension point commandTester

Documentation

Extension point to contribute new command testers. It's a class that provides a way to test if a command is installed on the target server OS.

Available options are: -name: the name of the commandTester.

-class: the class implementing CommandTester interface.

Command tester contribution example:

    <commandTester
        class="org.nuxeo.ecm.platform.commandline.executor.service.cmdtesters.DefaultCommandTester" name="DefaultCommandTester"/>

Contribution Descriptors

  • Class: org.nuxeo.ecm.platform.commandline.executor.service.CommandTesterDescriptor

Existing Contributions

Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.

  • nuxeo-platform-commandline-executor-2021.49.2.jar /OSGI-INF/commandline-default-contrib.xml
    <extension point="commandTester" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">
        <documentation>Simple default tester that only checks for command existence in the system path.</documentation>
        <commandTester class="org.nuxeo.ecm.platform.commandline.executor.service.cmdtesters.DefaultCommandTester" name="DefaultCommandTester">
        </commandTester>
      </extension>